package com.bll.impl.activityAction;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bean.ActivityBean;
import com.bll.Action;
import com.dao.ActivityDao;

public class DeleteActivityAction implements Action{
	public String execute(HttpServletRequest request,HttpServletResponse response) {
		
		String lujing = request.getParameter("lujing");
		String values[] = request.getParameterValues("cbx");
		ActivityDao dao=new ActivityDao();
		int id;
		if (values != null && values.length != 0) {
			for(int i = 0; i < values.length; i++) {
				id=Integer.parseInt(values[i]);
				dao.DeleteActivity(id);
			}
		}
		return lujing+"?lujing="+request.getParameter("lujing1");
	}
}

